<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        #app {
            padding: 20px;
        }

        #app>p {
            font-size: 35px;
        }

        h3 {
            margin-top: 30px;
        }

        .ipt {
            margin: 30px 0;
        }

        .ipt input {
            width: 100%;
            height: 30px;
            outline: none;
            border: 0;
            border-bottom: 1px solid rgb(194, 194, 194);
        }

        button {
            width: 100%;
            height: 35px;
            margin-top: 30px;
            border: 0;
            border-radius: 35px;
            background-color: rgb(223, 220, 220);
            color: gray;
        }

        .data .check {
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
        }

        .data .check p {
            color: lightskyblue;
            font-size: 13px;
        }

        .data>p {
            font-size: 12px;
            margin-top: 200px;
            color:rgb(205, 202, 202);
        }

        .data>p span {
            color: lightskyblue;
        }

        .bottom input {
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <div id="app">
        <p>×</p>
        <h3>密码登录</h3>
        <div class="data">
            <div class="ipt">
                <input type="text" placeholder="手机/用户名" v-model="form.name">
            </div>
            <div class="ipt">
                <input type="password" placeholder="密码" v-model="form.password">
            </div>
            <button @click="login">登录</button>
            <div class="check">
                <p>手机号登录</p>
                <p>忘记密码</p>
            </div>
            <p><input type="radio"> 已阅读并同意<span>《用户服务协议》、《隐私政策》</span>
            </p>
        </div>

    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            form: [
                { name: '', password: '' }
            ]
        },
        methods: {
            login() {
                console.log('账号为：' + this.form.name);
                console.log('密码为：' + this.form.password);
                this.form.name = ''
                this.form.password = ''
            }
        }

    })
</script>